package com.easy.easybook.service.impl;

import com.easy.easybook.dao.BookMapper;
import com.easy.easybook.entity.Books;
import com.easy.easybook.service.BookService;
import com.easy.easybook.service.impl.base.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author http://zouyujie.top
 * @date 2021/12/19 11:53
 */
@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Books> implements BookService {
    @Autowired
    BookMapper bookMapper;
    @Override
    public int update(String name, String url, Integer stock, Integer cid, @Param("id") Integer id){
        return bookMapper.update(name, url, stock, cid, id);
    }
}
